package com.zhangzhan.gulimallauthserver.feign;

import com.zhangzhan.gulimallauthserver.vos.GiteeUserInfoVo;
import com.zhangzhan.gulimallauthserver.vos.UserLoginVo;
import com.zhangzhan.gulimallauthserver.vos.UserRegisterVo;
import com.zhangzhan.gulimallcommcon.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/6/28 0:36
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @RequestMapping(value = "/gulimallmember/member/enroll",method = RequestMethod.POST)
    public R enrollUser(@RequestBody UserRegisterVo to);

    @RequestMapping(value = "/gulimallmember/member/login",method = RequestMethod.POST)
    public R login(@RequestBody UserLoginVo to);

    @RequestMapping(value = "/gulimallmember/member/oauth2/enroll",method = RequestMethod.POST)
    public R oauth2GiteeEnrollUser(@RequestBody GiteeUserInfoVo to);
}
